package com.cqhilink.iot.jobstandardmanagement.services.outerservice.impl;

import com.cqhilink.iot.jobstandardmanagement.dao.mapper.LoginLogMapper;
import com.cqhilink.iot.jobstandardmanagement.facade.model.LoginLog;
import com.cqhilink.iot.jobstandardmanagement.facade.service.OutLoginLogService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by ${yangsy} on 2017/3/20.
 */
public class OutLoginLogServiceImpl implements OutLoginLogService {

    @Autowired
    private LoginLogMapper loginLogMapper;

    @Override
    public int insertSelective(LoginLog record) {
        return loginLogMapper.insertSelective(record);
    }

    @Override
    public LoginLog selectLastLoginTime(String userId) {
        return loginLogMapper.selectLastLoginTime(userId);
    }

    @Override
    public int deleteAll() {
        return loginLogMapper.deleteAll();
    }

    @Override
    public int deleteDoLogAll() {
        return loginLogMapper.deleteDoLogAll();
    }

    @Override
    public int updateLogoutTimeByUserId(LoginLog record) {
        return loginLogMapper.updateLogoutTimeByUserId(record);
    }
}
